package com.tinem.platform.module.pojo.vo.data;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @program: platform
 * @description: ${description}
 * @author: eden#can
 * @Slogan: 没有所谓失败，除非你不再尝试
 * @date: 2021-11-10 16:43
 **/
@Data
@ApiModel("translate 信息请求参数")
public class TranslateVO {

    @NotNull
    @ApiModelProperty(name = "transMsgList", value = "翻译消息体集合")
    List<String> transMsgList;

    @NotBlank(message = "消息体使用的语言不能为空")
    @ApiModelProperty(name = "fromLan", value = "消息体使用的语言",required = true)
    String fromLan;

    @NotBlank(message = "目标语言不能为空")
    @ApiModelProperty(name = "toLan", value = "目标语言",required = true)
    String toLan;

    @ApiModelProperty(name = "cache", value = "是否使用缓存，默认开启",allowableValues="enable,disable")
    String cache="enable";
    @ApiModelProperty(name = "type", value = "翻译渠道，默认baidu的翻译",allowableValues="baidu")
    String type="baidu";

}